package com.hzbc.faceattendance.service.impl;

import com.hzbc.faceattendance.model.HaiKangDevice;
import com.hzbc.faceattendance.repository.HaiKangDeviceRepository;
import com.hzbc.faceattendance.service.IHaiKangDeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HaiKangDeviceServiceImpl implements IHaiKangDeviceService {
    @Autowired
    private HaiKangDeviceRepository haiKangDeviceRepository;

    @Override
    public HaiKangDevice findHaiKangDeviceByID(String byIvmsChannel) {
        return haiKangDeviceRepository.findById(Integer.valueOf(byIvmsChannel)).orElse(null);
    }
}
